package com.luguangtao.api;

import com.github.pagehelper.PageInfo;
import com.luguangtao.entity.Goods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@FeignClient(name = "CLIENT001")
public interface GoodsApi {
    //列表
    @RequestMapping("lists1")
    public PageInfo lists1(@RequestParam Integer pageNum,@RequestParam String gsname,@RequestParam String ss);
    //添加
    @RequestMapping("addGoods1")
    public String addGoods1(@RequestBody Goods goods);
    //删除
    @RequestMapping("del1")
    public String del1(@RequestParam String goodsid);
    //回显
    @RequestMapping("getGoods1")
    public Goods getGoods1(@RequestParam String goodsid);
    //修改
    @RequestMapping("updateGoods1")
    public String updateGoods1(@RequestBody Goods goods);

/*
    @PostMapping("uploadPic1")
    @ResponseBody
    public String uploadPic1(@RequestBody MultipartFile file);

    @RequestMapping("downLoad1")
    public String downLoad1(@RequestParam("response")HttpServletResponse response,@RequestParam("request")HttpServletRequest request,String filename);*/
}
